#include "Entity/World.hpp"
#include "Entity/IEntity.hpp"
#include "Graphics/ISprite.hpp"
#include "Math/Vector.hpp"
#include "Physics/IBody.hpp"

#include <string>

DefineEntity< Entity::World > worldDef( "ent_world" );

namespace Entity
{
	World::World( void )
	{
	}

	World::~World( void )
	{
	}

	void World::SetSize( const Math::Vectorf &vec )
	{
		GetSprite()->SetSize( vec );
		GetPhysicsBody()->Initialise( Physics::PHYS_BODYTYPE_STATIC, Physics::PHYS_SHAPE_BOX, vec );
		IEntity::SetSize( vec );
	}
}